<?php

class Soul_Template_Html_Grid_Head_Label extends Soul_Template_Html_Grid_Head_Base {

    public function renderChildren(){
        $result = '';
        if($this->getSortField()){
            $result .= '<a href="'.$this->getSortUrl().'">';
        }
        $result .= '<span>'.$this->getText().'</span>';
        if($this->getSortField()){
            $result .= '</a>';
        }
        return $result;
    }
}